const { DietRecord } = require('@/models/report');
const getRecords = async (req, res) => {
  const { user_id } = req.params;
  const records = await DietRecord.getRecords(user_id);
  res.json(records);
}
const getStats = async (req, res) => {
  const { user_id } = req.params;
  const stats = await DietRecord.getStats(user_id);
  res.json(stats);
}
const aiAnalysis = async (req, res) => {
  const { user_id } = req.params;
  const analysis = await DietRecord.aiAnalysis(user_id);
  res.json(analysis);
}
module.exports = {
    getRecords,
    getStats,
    aiAnalysis
}
